package com.youoor.common.base;

import java.util.List;


public interface BaseService<E,EQ,PK> {

	public int save(E record);

	public int saveSelective(E record);

	public int countByExample(EQ example);

	public int deleteByExample(EQ example);

	public int deleteByPrimaryKey(PK id);

	public List<E> selectByExample(EQ example,Integer num);

	public E selectByPrimaryKey(PK id);

	public int updateByExampleSelective(E record, EQ example);

	public int updateByExample(E record, EQ example);

	public int updateByPrimaryKeySelective(E record);

	public int updateByPrimaryKey(E record);
}
